package team.pra.manager.common;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ManagerResult {
    private Integer status;
    private String message;

    public static ManagerResult ok(){
        return new ManagerResult(200, "success");
    }
    public static ManagerResult ok(boolean status) {
        if (!status){
            return new ManagerResult(500,"failed");
        }
        return ok();
    }
}
